Binary-to-text encoding